home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
001-025
/
disk_015
/
polydraw
/
polydraw.doc
< prev
Wrap
Text File
|
1992-05-06
|
5KB
|
170 lines
POLYDRAW INSTRUCTIONS
WRITTEN BY
DAVID ADDISON
c 1985 (503)645-6985
In all the draw commands except the TEXT modes, pressing
'C' will let you change the color of the pen.
You can make your selections either from the keyboard or by
pressing the '?' key and using mouse to select from menu.
Pressing space bar or any key except 'C' will exit from
current mode and allow you to select another.
A..... Alter Color palette
Point to the color at the top of the screen and press left
mouse button to select color to alter. Point to up & down arrows
and press left button to change values for RED,GREEN and BLUE.
When done click left button on circle next to the word QUIT.
B..... Box
Point to where you want the upper left hand corner of the
box to be and press left button. Continue holding button down and
move mouse to outline the box. When you have it where you want it
release the mouse button.
C..... Change Color
Point to new color and double click left button.
D..... Draw
Hold down left button and move mouse to draw in the current
color.
E..... Ellipse
Point to where you want the center of your ellipse to be
and press left button. continue holding button and move mouse.
Moving the mouse right & left changes ellipse horizontally, up &
dowm changes ellipse vertically. Release button to complete
ellipse.
F..... Fill
Point to where you want fill to start and press left mouse
button.
K..... Load (shape or picture)
Enter name of picture or shape you want to load at prompt.
Place pointer where you want the upper lefthand corner of picture
or shape to be and press left button.(or press return to place
picture at X=0 and Y=0)
L..... Line
Place pointer where you want line to start, hold down left
button and move mouse to position the end point of line. Release
button to draw line.
M..... Cycle Colors
Enter the starting color register (0-31).
Enter the ending color register (0-31).
Enter the speed of color rotation. Small numbers=FAST,
large numbers=SLOW.
Press left button to stop rotation.
O..... Circle
Place pointer where center of circle will be. Press and
old left button to draw circle. Release button to finish circle.
Q..... QUIT
To end program and return to basic.
R..... Rays
Place pointer where center of ray will be. Press and hold
left button to draw ray. This works good to erase things when
you are using the background color.
S..... Save (shape or picture)
Point to upper lefthand corner of shape and press left
button. (press return to save the whole screen) Move mouse to
lower righthand corner and press left button. Enter the name of
picture or shape at prompt and press return. Use SIZE to
dimension an integer array in basic to hold your pictures and
shapes.
TB.... Big Text
Move pointer to where text line begins and press left
button. Pointer is the lower left corner of text. Begin typing
in text. Press return to end line and start another. Press left
button before pressing return to exit text mode. Press control
"C" to change color of text.
TS.... Small Text
See Big Text.
U..... Clear Screen
Erases screen.
X..... Copy Shape
Point to upper left corner of shape and press left button
(or press return to use the last shape you defined) . Point to
lower right corner of shape and press left button. Shape is now
ready to use. Point to where you want shape to be and press left
button. You can use shape as a brush by holding down left button
while moving the mouse.
Z..... Show X & Y
This toggles the XY window on and off. This window updates
slowly so as not to interupt the drawing modes to much.
?..... Menu
Allows you to choose your options with the mouse. Select
mode with mouse and double click the left mouse button.
When you save a picture or shape, a second file with the same
name as the picture except for a '_dat' extender will be created
also. This file will hold the Color values for this picture or
shape. See example below on how to use this in your own
programs.
BASIC EXAMPLE OF USING PICTURES OR SHAPES IN YOUR OWN PROGRAMS
10 scnclr:screen 0,5
100 DIM picture%(11000): REM array to hold picture or shape. Use
the value of SIZE from polydraw program when you saved the shape.
110 DIM colors%(100): REM this array will hold the color palette.
120 BLOAD "filename_dat",VARPTR(colors%(0)): REM Use the name of
the shape you are loading in place of filename. Make sure you add
the "_dat" extender
130 REM routine to load the color registers with color values
140 cnt=0
150 FOR j%=0 to 31
160 RGB j%,colors%(cnt),colors%(cnt+1),colors%(cnt+2)
170 cnt=cnt+3
180 NEXT j%
190 REM routine to load picture or shape and display on screen
200 BLOAD "filename",VARPTR(picture%(0)): REM loads picture into
array. Use your own picture name in place of "filename".
210 x%=100:y%=50: REM X & Y of upper left corner where picture
will go.
220 GSHAPE (x%,y%),picture%(): REM places picture on screen